package com.shop2cn.iapi.sqoptrade.parameter.req;

import com.shop2cn.iapi.sqoptrade.parameter.enums.CancelOrderTypeEnum;

@SuppressWarnings("serial")
public class CancelOrderReq extends BaseRequest {

	private String cancelReason;

	private CancelOrderTypeEnum cancelType;

	private long orderId;

	/**
	 * 系统操作取消为 -1
	 * 其他为 买家或卖家id
	 */
	private Long userId;

	@Override
	public boolean requiresAppId() {
		return false;
	}

	public String getCancelReason() {
		return cancelReason;
	}

	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}

	public CancelOrderTypeEnum getCancelType() {
		return cancelType;
	}

	public void setCancelType(CancelOrderTypeEnum cancelType) {
		this.cancelType = cancelType;
	}

	public long getOrderId() {
		return orderId;
	}

	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
}
